<%if @project%> 
   <%=render :partial=>'project_index'%>
<%else%>
   <%=render :partial=>'company_index'%>
<%end%>

